<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAttTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('atts', function (Blueprint $table) {//创建借款表附属信息表atts
            //更改主键aid
            $table->increments('aid');
            //用户uid
            $table->integer('uid');
            //项目pid
            $table->integer('pid');
            //项目名称
            $table->string('title');
            //真实姓名
            $table->string('realname');
            //年龄
            $table->tinyinteger('age');
            //性别
            $table->enum('gender',['男','女']);
            //收入,千为单位
            $table->tinyinteger('salary');
            //工作城市
            $table->string('jobcity');
            //用户描述
            $table->string('udesc');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('atts');
    }
}
